-- GENERATED SPELL FOR [Winterskorn Woodsman] --


function spell0_23662(pUnit, Event) --@Chop,n/a--
pUnit:FullCastSpellOnTarget(43410,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23662', 5250, 1)
end

function spell1_23662(pUnit, Event) --@Throw,n/a--
pUnit:FullCastSpellOnTarget(38557,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23662', 1500, 1)
end

function Sorts_23662(pUnit, Event)
local choix_sorts_23662 = math.random(0, 1)
if choix_sorts_23662 == 0 then
pUnit:RegisterEvent('spell0_23662', 1, 1)
end
if choix_sorts_23662 == 1 then
pUnit:RegisterEvent('spell1_23662', 1, 1)
end
end

function mob23662_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23662', math.random(1500, 3000), 1)
end

function mob23662_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23662_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23662_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23662, 1, 'mob23662_Action')
RegisterUnitEvent(23662, 2, 'mob23662_Leave')
RegisterUnitEvent(23662, 3, 'mob23662_Kill')
RegisterUnitEvent(23662, 4, 'mob23662_Die')
